#ifndef TEXTRENDERER_HPP
#define	TEXTRENDERER_HPP

#include <Ogre.h>
#include <OgreSingleton.h>

//source: http://www.ogre3d.org/tikiwiki/Simple+Text+Output&structure=Cookbook
 
class TextRenderer : public Ogre::Singleton<TextRenderer> {
    private: 
        Ogre::OverlayManager*    _overlayMgr;
        Ogre::Overlay*           _overlay;
        Ogre::OverlayContainer*  _panel;
 
    public: 
        TextRenderer();
        ~TextRenderer();

        void addTextBox(
            const std::string& ID,
            const std::string& text,
            Ogre::Real x, Ogre::Real y,
            Ogre::Real width, Ogre::Real height,
            const Ogre::ColourValue& color,
            std::string size);

        void removeTextBox(const std::string& ID);

        void setText(const std::string& ID, const std::string& Text);
        const std::string& getText(const std::string& ID);
};

#endif

